/*
 * Copyright (C) 2011 Nicolas BARBOTIN
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
//Mini Lib "half French, half English"

#ifndef LECTEURIMAGE_H
#define LECTEURIMAGE_H

#include <SDL/SDL.h>

enum NMI_ANGLE {
    NMIA_90,
    NMIA_180,
    NMIA_270
};

SDL_Surface *lireImage(const char *fichier);
SDL_Surface **lireMap(const char *fichier, int taille, Uint8 r, Uint8 v, Uint8 b);
SDL_Surface *retournerSurface(SDL_Surface *surface, NMI_ANGLE angle = NMIA_90);

#ifndef NMI_DISABLE_CONVERT
    void convertirImage(const char *source, const char *destination);
    void convertirSurface(SDL_Surface *src, const char *destination);
#endif //NMI_DISABLE_CONVERT

#endif //LECTEURIMAGE_H
